package cn.iune.backcenter.author.sysinfo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;

import com.justep.baas.data.RowState;

@Entity
@Table(name="BillSetting",uniqueConstraints={@UniqueConstraint(columnNames={"billType"}),@UniqueConstraint(columnNames={"preChar"})})
public class BillSetting {
	
	@Id
	@Column(length=32)
	private String fID;
	@Column(length=4)
	private String billType;
	@Column(length=20)
	private String billTypeName;
	/*
	 * 1:入库
	 * 2:销货
	 * 3:领用
	 * 4:调拨
	 * 5:调整
	 */
	private int dealType = 0;

	@Column(length=2)
	private String preChar;
	@Column(length=2)
	private String codeType;
	@Column(length=10)
	private String codeTypeLabel;
	private int codeCount;
	@Column(length=1)
	private String autoCode;
	@Column(length=2)
	private String autoCodeLabel;
	private int direction;
	@Column(length=5)
	private String directionLabel;
	@Column(length=1)
	private String costingCode;
	@Column(length=10)
	private String costingCodeLabel;
	@Column(length=1)
	private String revOpay;
	@Column(length=4)
	private String revOpayLabel;
	@Column(length=4)
	private String origin;
	@Column(length=20)
	private String originName;

	private int flowType;
	@Column(length=20)
	private String flowTypeLabel;
	
	@Column(length=32)
	private String fMasterID;
//	private String systemCode;
//	private String systemName;

//	private String windowUrl;
//	private String windowProcess;
//	private String windowActivity;
	
	@Column(length=1,columnDefinition="VARCHAR(1) default 'N' COMMENT '单据日志'")
	private String billLog;//Y,N(default)
	
	
	
	
	@Column(length=32)
	private String appId;//在服务器中注册的应用ID
	@Column(length=256)
	private String appName;//在服务器中注册的应用名称
	
	
	
	
	
	private int version;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}

	
	public int getFlowType() {
		return flowType;
	}
	public void setFlowType(int flowType) {
		this.flowType = flowType;
	}
	public String getOriginName() {
		return originName;
	}
	public void setOriginName(String originName) {
		this.originName = originName;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getBillType() {
		return billType;
	}
	public void setBillType(String billType) {
		this.billType = billType;
	}
	public String getBillTypeName() {
		return billTypeName;
	}
	public void setBillTypeName(String billTypeName) {
		this.billTypeName = billTypeName;
	}
	public String getPreChar() {
		return preChar;
	}
	public void setPreChar(String preChar) {
		this.preChar = preChar;
	}
	public String getCodeType() {
		return codeType;
	}
	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}
	public int getCodeCount() {
		return codeCount;
	}
	public void setCodeCount(int codeCount) {
		this.codeCount = codeCount;
	}
	public String getAutoCode() {
		return autoCode;
	}
	public void setAutoCode(String autoCode) {
		this.autoCode = autoCode;
	}
	public int getDirection() {
		return direction;
	}
	public void setDirection(int direction) {
		this.direction = direction;
	}
	public String getCostingCode() {
		return costingCode;
	}
	public void setCostingCode(String costingCode) {
		this.costingCode = costingCode;
	}
	public String getRevOpay() {
		return revOpay;
	}
	public void setRevOpay(String revOpay) {
		this.revOpay = revOpay;
	}
	public String getRevOpayLabel() {
		return revOpayLabel;
	}
	public void setRevOpayLabel(String revOpayLabel) {
		this.revOpayLabel = revOpayLabel;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public String getfMasterID() {
		return fMasterID;
	}
	public void setfMasterID(String fMasterID) {
		this.fMasterID = fMasterID;
	}
	public String getCodeTypeLabel() {
		return codeTypeLabel;
	}
	public void setCodeTypeLabel(String codeTypeLabel) {
		this.codeTypeLabel = codeTypeLabel;
	}
	public String getAutoCodeLabel() {
		return autoCodeLabel;
	}
	public void setAutoCodeLabel(String autoCodeLabel) {
		this.autoCodeLabel = autoCodeLabel;
	}
	public String getDirectionLabel() {
		return directionLabel;
	}
	public void setDirectionLabel(String directionLabel) {
		this.directionLabel = directionLabel;
	}
	public String getCostingCodeLabel() {
		return costingCodeLabel;
	}
	public void setCostingCodeLabel(String costingCodeLabel) {
		this.costingCodeLabel = costingCodeLabel;
	}
	public String getFlowTypeLabel() {
		return flowTypeLabel;
	}
	public void setFlowTypeLabel(String flowTypeLabel) {
		this.flowTypeLabel = flowTypeLabel;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getBillLog() {
		return billLog;
	}
	public void setBillLog(String billLog) {
		this.billLog = billLog;
	}
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public int getDealType() {
		return dealType;
	}
	public void setDealType(int dealType) {
		this.dealType = dealType;
	}

}
